package ycl.base.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import ycl.base.entity.UserFiles;
import ycl.common.base.mapper.BaseDao;

import java.util.List;

/**
 * 用户文件管理 数据库层
 *
 * @author ycl
 * @date 2022/7/6 0006 11:30:45
 */
@Mapper
public interface UserFilesMapper extends BaseDao<UserFiles> {


	@Override
	List<UserFiles> findPage(@Param("tableName") String tableName, @Param("page") Page<UserFiles> page, @Param("query") UserFiles query);


	@Override
	List<UserFiles> selectBatchIdsUserId(@Param("ids") List<Long> ids, @Param("userId") Long userId);

	/**
	 * 用户删除文件, 逻辑删除
	 * @param ids id
	 */
	void userDeleteFilesById(@Param("ids") List<Long> ids);
}
